<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>布局</title>
    <style>
        #header{
            background-color: black;
            color: white;
            text-align: center;
            padding: 5px;
        }

        #navigation{
            float: left;
            width: 100px;
            height: 300px;
            background-color: #eeeeee;
            line-height: 30px;
            padding: 10px;
        }

        #section{
            float: left;
            width: 350px;
            padding: 10px;
        }

        #footer{
            clear: both;  /* 清除浮动*/
            background-color: black;
            color: white;
            text-align: center;
            padding: 5px;
        }

        table.lamp{
            width: 100%;
            border: 1px solid #d4d3d4;
        }

        table.lamp th ,td{
            padding: 10px;
        }

        table.lamp th{
            width: 40px;
        }
    </style>
</head>
<body>
    <div id="header">
        <h1>City Gallery</h1>
    </div>
    <div id="navigation">
        London<br/>
        Paris<br/>
        Tokyo<br/>
    </div>
    <div id="section">
        <h2>London</h2>
        <p>
            London is the capital city of England. It is the most populous city in the United Kingdom,
            with a metropolitan area of over 13 million inhabitants.
        </p>
        <p>
            Standing on the River Thames, London has been a major settlement for two millennia,
            its history going back to its founding by the Romans, who named it Londinium.
        </p>
    </div>
    <div id="footer">
        Coopyright ? W3School.com
    </div>

    <!--
        在 W3School 中有推荐的 区域的命名方式 我们尽量遵守这些规则
        header
        nav
        section
        article
        aside
        footer
        details
        summary   定义details 元素的标题
    -->
    <h4>下面这是一个 并不规范的实例 table 并不推荐使用作为布局的元素 </h4>
    <table class="lamp">
        <tr>
            <th>
                <img src="../images/eg_cute.gif" alt="你好" style="width: 32px; height: 32px" />
            </th>
            <td>
                The table element was not designed to be a layout tool
            </td>
        </tr>
    </table>

</body>
</html>